//
//  HWFeedBackCell.m
//  嗨文
//
//  Created by 响当当 on 2019/1/18.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "HWFeedBackCell.h"

@interface HWFeedBackCell()
@end

@implementation HWFeedBackCell

- (UIImageView *)iconImageView
{
    if (!_iconImageView)
    {
        _iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(15*kUIScaleBasePlus,15*kUIScaleBasePlus,25*kUIScaleBasePlus,21*kUIScaleBasePlus)];
    }
    return _iconImageView;
}

- (UITextField *)textField
{
    if (!_textField)
    {
        _textField = [[UITextField alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.iconImageView.frame)+15*kUIScaleBasePlus,17*kUIScaleBasePlus,SCREEN_WIDTH-CGRectGetMaxX(self.iconImageView.frame)-15*kUIScaleBasePlus,16*kUIScaleBasePlus)];
    }
    return _textField;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self.contentView addSubview:self.iconImageView];
        [self.contentView addSubview:self.textField];
    }
    return self;
}
@end
